﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>DatePicker 日期选择框</title>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" /><link href="../demo.css" rel="stylesheet" type="text/css" />

    
    <script src="../../scripts/boot.js" type="text/javascript"></script>
    
</head>
<body>
    
    <h1>DatePicker 日期选择框</h1>      
    
    <h4>Date</h4>
    
    <input id="date1" class="mini-datepicker" value="2010-01-01" valueType="string" />
         

    <br /><br />
    <input type="button" value="setValue" onclick="setValue()"/>
    <input type="button" value="getValue" onclick="getValue()"/>    
    <script type="text/javascript">
        function setValue() {
            var t = mini.get("date1");
            t.setValue(new Date());
        }
        function getValue() {
            var t = mini.get("date1");

            alert(t.getValue());
        }
       
    </script>

</body>
</html>